{% extends "base_mobile.html" %}
{% from "_page.html" import message, render_errors %}
{%block title%}设置 | {%endblock%}
{%block container%}
{{message()}}
<div class="row">
<div class="span8">
    <div class="settings">
    <ul class="nav nav-tabs">
        <li><a href="{{url_for('account.settings')}}">帐号</a></li>
        <li class="active"><a href="{{url_for('account.settings_password')}}">修改密码</a></li>
    </ul>
    <form class="form-horizontal" method="POST">
        {{ form.hidden_tag() }}
        <div class="control-group">
            {{form.current_password.label(class="control-label")}}
            <div class="controls">
              {{ form.current_password() }} {{ render_errors(form.current_password) }}
            </div>
        </div>
        <div class="control-group">
            {{form.new_password.label(class="control-label")}}
            <div class="controls">
              {{ form.new_password() }} {{ render_errors(form.new_password) }}
            </div>
        </div>
        <div class="control-group">
            {{form.verify_password.label(class="control-label")}}
            <div class="controls">
              {{ form.verify_password() }} {{ render_errors(form.verify_password) }}
            </div>
        </div>
        <div class="form-actions">
            {{form.submit(class="btn btn-primary")}}
        </div>
    </form>
    </div>
</div>
</div>
{% endblock %}